home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / pagin608.zip / PAGDEMO.#1 < prev    next >
Text File  |  1995-11-16  |  3KB  |  88 lines

  1. # % PAGDEMO.#1
  2. # LENGTH=80 PAGE=60
  3. # TITLE CENTER
  4. ^N (page ^B)
  5. (Source file created ^A, the paginated version created ^D)
  6.  
  7. # END
  8. # FOOTER CENTER
  9.  
  10. Sample footer
  11. # END
  12. # ALIGN LENGTH=50
  13. This file demostrates some of the features of the PAGINATE program.
  14. There are a couple of sections of text here which are entered into the
  15. control file in simple free-form text.  Currently, we're displaying
  16. the text using "ALIGN" and "LENGTH=50".  "ALIGN" roughly evens out
  17. line lengths and makes them flush left.  Now, let's change over to
  18. "RIGHT" and "LENGTH=45" (the command case doesn't matter) and see how
  19. it looks...
  20.  
  21. # right length=45
  22. "RIGHT" roughly evens out line lengths and makes them flush
  23. right.  Frankly, I've never seen much of a purpose in this
  24. arrangement but it's used by some people so what the heck.  Try
  25. to please everyone...
  26.  
  27. # JUSTIFY LENGTH=40
  28. Here we are, shifted over to justification instead of alignment and
  29. of course changed the length of the lines again to make it obvious.
  30. Remember that justification makes the text line up on the right-hand
  31. margins whereas alignment doesn't.
  32.  
  33. (New paragraph here)  Another shift is about to happen here.  We're going
  34. to see how indentation can be used to show indented points.  This demo
  35. shows several features of the PAGINATE program including:
  36.  
  37. # INDENT 4-3 LENGTH=50
  38. * The use of ALIGN and PAGINATE.  These were already demonstrated.  Note
  39. that the lengths for the margins can be specified separately as necessary.
  40.  
  41. * The reading of ASCII-delimited text to create tables.  You can also read
  42. in dBase files if desired.
  43.  
  44. * The ability to sort the data.  Note that you don't really need to combine
  45. sorting with actual text.  You could use PAGINATE to just sort an entire data
  46. set (wouldn't be real efficient but it's free so why not).
  47.  
  48. # INDENT 0
  49. We're shifting over to show a table.  This table originally looked like this:
  50.  
  51. # VERBATIM
  52. # INCLUDE PAGDEMO.#1D
  53.  
  54. It's being processed by a field-definition file that looks like this:
  55.  
  56. # INCLUDE PAGDEMO.#1C
  57. # EJECT
  58. # JUSTIFY
  59. When you process the the file, you end up with a simple table that looks
  60. like this:
  61.  
  62. # HEADING
  63. ^H
  64.  
  65. # END
  66. # INDEF=PAGDEMO.#1C
  67. # FROM ASCII
  68. # INCLUDE PAGDEMO.#1D
  69. # FROM FIXED
  70. # JUSTIFY
  71.  
  72. Additionally, you can request that the routine sort the data for you.  This
  73. can be done sorting by columns or by variables.  In our case, we're going to
  74. sort the file based on the value in the first numeric column:
  75.  
  76. # SORT 2
  77. # FROM ASCII
  78. # INCLUDE PAGDEMO.#1D
  79. # SORT 0
  80. # FROM FIXED
  81. # JUSTIFY
  82.  
  83. Another example, this time with a descending sort based on the stub column.
  84.  
  85. # SORTD 1
  86. # FROM ASCII
  87. # INCLUDE PAGDEMO.#1D
  88.